import json

import pandas as pd
import requests

from d_utils.log_utils import g_log
from d_utils.redis_utils import g_redis


class GrapExcelData:
    def __init__(self):
        self.urls = []
        pass

    def parse_excel(self, file_path):
        """
        解析Excel文件
        :param file_path:
        :return:
        """

        df = pd.read_excel(file_path)
        # 遍历每一行
        for index, row in df.iterrows():
            for item in row:
                item: str
                if isinstance(item, str) and item.startswith("http"):

                    self.urls.append(item)




pass
